<script setup>
import { ref } from 'vue'
import { useRouter } from 'vue-router'
const router = useRouter()
const Ms = ref({
  id: ''
})
const onoteinfo = ref(null)
const onoteinfoview = ref(null)
import { userOnoteinfoGetService } from '@/api/user/note'
const getLandparcelreInfoList = async () => {
  try {
    Ms.value.id = router.currentRoute.value.params.id
    const res = await userOnoteinfoGetService(Ms.value)
    onoteinfo.value = res.data.data
    onoteinfoview.value = onoteinfo.value[0].content
    //onsole.log(onoteinfoview.value[0].content)

    // open() // 在获取通知信息后调用打开通知的函数
  } catch (error) {
    console.error('Failed to fetch data:', error)
  }
}
getLandparcelreInfoList()
</script>
<template>
  <PageContainer style="display: flex; justify-content: center">
    {{ onoteinfoview }}
  </PageContainer>
</template>
